﻿var dispFrom = ["From","起點","起点"];
var dispTo = ["To","終點","终点"];
var dispKeywords = ["Keywords","關鍵字","关键字"];
var dispDistricts = ["Districts","地區","地区"];
var dispSelectKeyword = ["Select Keywords","選擇關鍵字","选择关键字"];
var dispSelectDistrict = ["Select District","選擇地區","选择地区"];
var dispKeys = [[["Building Name","Building","City","Court","Estate","Garden","Hill","House","Oasis","Terrace","Tower","Villa","Vista"],
							["Commercial Place","Center","Company","Club","Hotel","Lodge","Park","Place","Plaza"],
							["Public Place","Airport","Beach","Clinic","Hall","Hospital","Library","Market","Park","Pier","Sports","Stadium","Swimming"],
							["Government Facility","Barracks","Consulate","Museum","Police","Post"],
							["Religion / Culture","Church","Monastery","Temple"],
							["School","College","Institute","Kindergarten","Primary","Secondary","University"]],
							[["樓宇名稱","大廈","樓","閣","苑","院","臺","台","居","軒","庭","城","村","邨","山","山莊","豪庭","半島","灣畔"],
							["商業地方","中心","商場","廣場","酒店","公園","小築","別墅","賓館","公司","宿舍","俱樂部","院","所","行"],
							["公眾場所","機場","碼頭","會所","醫院","街市","運動場","游泳池","體育館","圖書館","停車場","診療院","公園","灘","灣","場","館"],
							["政府設施","郵政局","博物館","消防局","領事館","政府合署","警署","軍營","署","局"],
							["宗教地方","會堂","教堂","浸信會","堂會","廟","寺","會","堂"],
							["學校","小學","中學","大學","學校","書院","幼稚園"]],
							[["楼宇名称","大厦","楼","阁","苑","院","臺","台","居","轩","庭","城","村","邨","山","山庄","豪庭","半岛","湾畔"],
							["商业地方","中心","商场","广场","酒店","公园","小筑","别墅","宾馆","公司","宿舍","俱乐部","院","所","行"],
							["公眾场所","机场","码头","会所","医院","街市","运动场","游泳池","体育馆","图书馆","停车场","诊疗院","公园","滩","湾","场","馆"],
							["政府设施","邮政局","博物馆","消防局","领事馆","政府合署","警署","军营","署","局"],
							["宗教地方","会堂","教堂","浸信会","堂会","庙","寺","会","堂"],
							["学校","小学","中学","大学","学校","书院","幼稚园"]]];
var dispDists=[["Central & Western","Eastern","Islands","Kowloon City","Kwai Tsing","Kwun Tong","North","Sai Kung","Sha Tin","Sham Shui Po","Southern","Tai Po","Tsuen Wan","Tuen Mun","Wan Chai","Wong Tai Sin","Yau Tsim Mong","Yuen long"],
							["中西區","東區","離島區","九龍城區","葵青區","觀塘區","北區","西貢區","沙田區","深水埗區","南區","大埔區","荃灣區","屯門區","灣仔區","黃大仙區","油尖旺區","元朗區"],
							["中西区","东区","离岛区","九龙城区","葵青区","观塘区","北区","西贡区","沙田区","深水埗区","南区","大埔区","荃湾区","屯门区","湾仔区","黄大仙区","油尖旺区","元朗区"]];

var dispchoose=[" choose ","選","选"];

var dispNonStopping = ["No Stopping Restriction","禁止停車","禁止停车"];
var dispVehicleType = ["Vehicle Type","車輛類型","车辆类型"];
var dispTimeZone = ["Time Zone","禁停時段","禁停时段"];
var dispEffectiveDay = ["Effective Day","禁停日期","禁停日期"];
var dispRemarks = ["Remarks","備註","备注"];
var dispVEHICLE_TY_line = [["Other Line","Red Line","Green Line","Gray Line","Yellow Line","Light Blue Line"],
											["其他線","紅線","綠線","灰線","黃線","淺藍線"],
											["其他线","红线","绿线","灰线","黄线","淺藍线"]];
var dispVEHICLE_TY = [["Unknown","All motor vehicles","Taxis","Public Light Bus","Goods Vehicles","Others"],
									["未知","所有車輛","的士","公共小巴","貨車","其他車輛"],
									["未知","所有车辆","的士","公共小巴","货车","其它车辆"]];
var dispTIME_ZONE = [["Unknown","24 Hours","8 am to 10 am and 5 pm to 7 pm","7 am to 7 pm","7 am to midnight","Please see remarks below"],
								["未知","24小時","上午8點到10點,下午5點到7點","上午7點到下午7點","上午7點到午夜","請看說明"],
								["未知","24小时","上午8点到10点,下午5点到7点","上午7点到下午7点","上午7点到午夜","请看说明"]];
var dispEFFECTIVE = [["Unknown","All days","All days except Sundays and Public Holidays","General Holidays (Sundays and Public Holidays)","Please see remarks below"],
								["未知","所有日期","所有日期(星期日及公衆假期除外)","星期日及公衆假期","請看說明"],
								["未知","所有日期","所有日期(星期日及公众假期除外)","星期日及公众假期","请看说明"]];
							
var dispPartTimePedestrianStreet = ["Part Time Pedestrian Street","部分時間行人專用區","部分时间行人专用区"];
var dispPermit = ["Permit Required","需持有許可證","需持有许可证"];
var dispVehicle = ["Vehicle Restriction","車輛限制","车辆限制"];
var dispTurn = ["Turn Restriction","轉向限制","转向限制"];
var dispProhibitions = ["Vehicle Prohibition","車輛禁區","车辆禁区"];

var dispShort1 = ["Shortest Distance","最短距離","最短距离"];
var dispShort2 = ["Lowest Toll (Private Car Only)","最低道路收費 (只提供私家車資料)","最低道路收费 (只提供私家车资料)"];
var dispShort3 = ["Shortest Travel Time (Static)","最短時間(固定車速)","最短时间(固定车速)"];
//var dispShort4 = ["Shortest Travel Time (<a href=\'javascript:openReferenceWin();\'>*Ref. Time</a>)","最短時間(<a href=\'javascript:openReferenceWin();\'>*參考時間</a>)","最短时间(<a href=\'javascript:openReferenceWin();\'>*参考时间</a>)"];
//var dispShort4 = ["Shortest Travel Time (Real Time)","最短時間(實時車速)","最短时间(实时车速)"];
var dispShort4 = ["Shortest Travel Time","最短時間","最短时间"];

var dispToolbar = ["Map Tool Bar","地圖工具欄","地图工具栏"];
var dispToolbar2 = ["Avoid /<br>Include","避開 /<br>必經","避开 /<br>必经"];
var dispLink = ["Hyperlinks","鏈接","链接"];
//var dispClaim = ["Disclaimer","免責聲明","免责声明"];
var dispClaim = ["Important Notices","重要告示","重要告示"];
var dispContact = ["Contact Us","聯絡我們","联络我们"];
var dispHelp = ["Help","幫助","帮助"];
var dispHelp2 = ["Tips and General Notes","提示及一般事項","提示及一般事项"];

var dispNotFound = ["Not found!","找不到","找不到"];
var dispNoRecordFound = ["No Record Found!","沒有資料記錄!","没有资料记录!"];
var dispStartPoint = ["Start Point","起點","起点"];
var dispNext = ["Next","下一頁","下一页"];
var dispPre = ["Previous","前一頁","前一页"];
var dispCategory = ["Category","類別","类别"];
var dispDistricts = ["Districts","地區","地区"];
var dispAvoid = ["Avoid a road","避開路段","避开路段"];
var dispInclude = ["Include a road","必經路段","必经路段"];

var dispResult = ["Result","結果","结果"];
var dispOtherOption = ["Other Option ","其他選擇","其它选择"];
var dispDistance = ["Distance(km)","距離(公里)","距离(公里)"];
var dispTime = ["Time(min)","時間(分鐘)","时间(分钟)"];
var dispToll = ["Toll($)","路費($)","路费($)"];
var dispKM = ["km","公里","公里"];
var dispMins = ["min","分鐘","分钟"];
var dispMeas = ["m","米","米"];

var dispAt = ["At ","在","在"];
var dispTurnTo = [" turn To ","轉入","转入"];
var dispTurnLeftTo = [" keep/turn left to ","靠左/轉入","靠左/转入"];
var dispTurnRightTo = [" keep/turn right to ","靠右/轉入","靠右/转入"];
var dispKeepGoingTo = [" keep going to ","直走至","直走至"];
var dispTurnRoundTo = [" turn round to ","掉頭至","掉头至"];
var dispNoNameRoad = ["Road Link","接駁路","接驳路"];
var dispNoNameCrossing = ["Junction","交匯處","交汇处"];
var dispNoNameCrossing2 = ["Road Link","接駁路","接驳路"];
var disToll = ["Toll","道路收費","道路收费"];

var dispDescription = ["Description","提示","提示"];
var dispTips = ["Tips","提示","提示"];
var dispTips1 = ["For textual input of &quot;Origin&quot; and &quot;Destination&quot;, please key-in the street name with house number (e.g. Nathan Road 782 or 782 Nathan Road) or estate name with block number (e.g. Laguna City Block 13).",
					"選用文字輸入設定「起點」和「終點」，請鍵入街道名稱及號數(例：彌敦道 782 或 782 彌敦道)，或屋苑名稱及座數(例：麗港城第十三座)。",
					"选用文字输入设定「起点」和「终点」，请键入街道名称及号数(例：弥敦道 782 或 782 弥敦道)，或屋苑名称及座数(例：丽港城第十三座)。"]
//var dispTips1 = ["For textual input of &quot;Origin&quot; and &quot;Destination&quot;, please key-in the street name with house number (e.g. Nathan Road 782 or 782 Nathan Road) or estate name with block number (e.g. Laguna City Block 13).",
//					"選用文字輸入設定「起點」和「終點」，請鍵入街道名稱連門號(例：彌敦道 782 或 782 彌敦道)，或屋苑名稱連座數(例：麗港城第十三座)。",
//					"选用文字输入设定「起点」和「终点」，请键入街道名称连门号(例：弥敦道 782 或 782 弥敦道)，或屋苑名称连座数(例：丽港城第十三座)。"]					
var dispTips2 = ["You may locate the &quot;Origin&quot; and &quot;Destination&quot; on the map by using the Map Tool Bar.",
					"閣下可利用地圖工具欄在地圖上設定「起點」和「終點」。",
					"阁下可利用地图工具栏在地图上设定「起点」和「终点」。"]
var dispTips3 = ["If applicable, you may also use Category Search or Tourism Board Attractions for inputting &quot;Origin&quot; and &quot;Destination&quot;.",
					"如適用，閣下可利用分類搜尋或旅遊發展局觀光覽勝，設定「起點」和「終點」。",
					"如适用，阁下可利用分类搜寻或旅游发展局观光览胜，设定「起点」和「终点」。"]
var dispTips4 = ["For Mass Transit Railway station, please key-in XXX station (e.g Wan Chai Station).",
					"輸入鐵路站名稱，請鍵入xxx站 (例：灣仔站)。",
					"输入铁路站名称，请键入xxx站 (例：湾仔站)。"]
var dispTips5 = ["You may enable the customized function in the browser to input the frequently used origins and destinations.",
					"閣下可在瀏覽器內啟動選項功能，用作輸入經常使用的「起點」和「終點」。",
					"阁下可在浏览器内启动选项功能，用作输入经常使用的「起点」和「终点」。"]
var dispTips6 = ["Zoom to the lowest layer of the map to view locations of no-stopping restrictions and major car-park run in-out etc.",
					"將地圖放大至最底層，檢視禁止停車限制及主要停車場出入口的位置等。",
					"将地图放大至最底层，检视禁止停车限制及主要停车场出入口的位置等。"]
var dispTips7 = ["Please refer to the suggested guidelines for the use of &quot;Avoid&quot; and &quot;Include&quot; functions before you use them.",
					"請參考「避開」和「必經」功能的建議使用方法。",
					"请参考「避开」和「必经」功能的建议使用方法。"]
var dispTips8 = ["For steps to use &quot;Avoid&quot; function, please click (Guide).",
					"請按(Guide)查詢使用「避開」功能的步驟。",
					"请按(Guide)查询使用「避开」功能的步骤。"]
var dispTips9 = ["For steps to use &quot;Include&quot; function, please click (Guide).",
					"請按(Guide)查詢使用「必經」功能的步驟。",
					"请按(Guide)查询使用「必经」功能的步骤。"]
var dispTips10 = ["Please allow pop-up function. Any relevant “Special Traffic News” and “Special Traffic and Transport Arrangement” will be shown.",
					"請允許快顯功能，我們將會提供有關的「特別交通消息」和「特別交通及運輸安排」。",
					"请允许快显功能，我们将会提供有关的「特别交通消息」和「特别交通及运输安排」。"]
var dispNotes = ["General Notes","一般事項","一般事项"];
var dispNotes1 = ["This service is provided for users’ information only. Users are advised to observe traffic signs, road markings and, if applicable, temporary traffic arrangements for roadworks (<A HREF=\"http://www.td.gov.hk/en/traffic_notices/index.html\" target=\"_blank\"><font color=blue>Traffic Notices</font></a>) on roads.",
					"本服務只作參考用途。閣下必須遵照道路上的交通標誌、道路標記及(如適用)因進行道路工程而實施的臨時交通安排(<A HREF=\"http://www.td.gov.hk/tc/traffic_notices/index.html\" target=\"_blank\"><font color=blue>交通通告</font></a>)。",
					"本服务只作参考用途。阁下必须遵照道路上的交通标志、道路标记及(如适用)因进行道路工程而实施的临时交通安排(<A HREF=\"http://www.td.gov.hk/sc/traffic_notices/index.html\" target=\"_blank\"><font color=blue>交通通告</font></a>)。"]
var dispNotes2 = ["The travel time shown for the result route is estimated from the historical statistics and the latest information collected by traffic detectors on roads, if applicable. It is for reference only and may not represent the travel time to be taken by motorists at any time.",
					"搜尋路線結果所顯示的行車時間是根據過往的統計數據，並在適用情況下，加上道路交通探測器收集到的最新資料估算出來，只能作參考之用，並不表示駕駛者在任何時候所需要的行車時間。",
					"搜寻路线结果所显示的行车时间是根据过往的统计数据，并在适用情况下，加上道路交通探测器收集到的最新资料估算出来，只能作参考之用，并不表示驾驶者在任何时候所需要的行车时间。"]
var dispNotes3 = ["Users are welcome to make enquiry or provide feedback on this service through the 1823 Call Centre (Tel: 1823) or email address: <A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>",
					"歡迎閣下透過1823電話中心(電話：1823)或電郵地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>對本服務提出詢問或提供意見。",
					"欢迎阁下透过1823电话中心(电话：1823)或电邮地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>对本服务提出询问或提供意见。"]
var dispNotes4 = ["For textural inputs and category search, the system locates the origin or destination on a road nearest to the user's input address.  If you find the recommended locations not appropriate for vehicular access, please inform us through the 1823 Call Centre (Tel: 1823) or email address: <A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A> for our revision of data and continuous service improvement.",
					"用文字輸入或分類搜尋輸入起點/終點的地址時，系統會將該起點/終點設定於最近的路段上。如閣下發現建議的位置不恰當，請透過1823電話中心(電話：1823)或電郵地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>向我們提供意見，以便我們修改資料和持續改善服務。",
					"用文字输入或分类搜寻输入起点/终点的地址时，系统会将该起点/终点设定于最近的路段上。如阁下发现建议的位置不恰当，请透过1823电话中心(电话：1823)或电邮地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>向我们提供意见，以便我们修改数据和持续改善服务。"]
//var dispNotes4 = ["For textural inputs and category search, the system locates the origin or destination on a road nearest to the user’s input address.  There may be cases that the given location is not the one commonly used for vehicular access since such vehicular access information is still being collected.  As a pilot version, the service needs time and user feedback to refine on this aspect.  If you find the recommended locations not appropriate for vehicular access, please inform us through the 1823 Call Centre (Tel: 1823) or email address: <A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A> for our revision of data and continuous service improvement.",
//					"用文字輸入或分類搜尋輸入起點/終點的地址時，系統會將該起點/終點設定於最近的路段上。由於通往各地址的車輛出入通道資料仍在搜集中，系統所提供的地點未必是一般供車輛出入的通道。鑑於此乃試驗版，服務需要時間及使用者的回應而作出改良。如閣下發現建議的位置不恰當，請透過1823電話中心(電話：1823)或電郵地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>向我們提供意見，以便我們修改資料和持續改善服務。",
//					"用文字输入或分类搜寻输入起点/终点的地址时，系统会将该起点/终点设定于最近的路段上。由于通往各地址的车辆出入信道数据仍在搜集中，系统所提供的地点未必是一般供车辆出入的通道。鉴于此乃试验版，服务需要时间及使用者的响应而作出改良。如阁下发现建议的位置不恰当，请透过1823电话中心(电话：1823)或电邮地址：<A HREF=\"mailto:tdenq@td.gov.hk\"><font color=blue>tdenq@td.gov.hk</font></A>向我们提供意见，以便我们修改数据和持续改善服务。"]					
var dispNotes5 = ["This website is best viewed with 1024 x 768 resolution.",
					"本網頁以1024 x 768 解像度閱讀效果最佳。",
					"本网页以1024 x 768 解像度阅读效果最佳。"]
var dispDesc1 = ["1.For better search result, please input more specific location names, such as estate name with block number, street name with house number.<br />2.If no results are found, please locate the \"Origin\" or \"Destination\" on map directly.<br />3.To search Mass Transit Railway station, type in XXX station (e.g. Wan Chai Station).</span>",
									"1.請盡量輸入詳細的地點名稱，例如屋苑及座數、街道及門牌等，有助搜出更合適路線。<br />2.如沒有路線提供，請查看地圖，把附近最合適的地點訂為出發地/目的地再搜尋。<br />3.如要輸入鐵路站，請輸入XXX站 (例如：灣仔站)。",
									"1.请尽量输入详细的地点名称，例如屋苑及座数、街道及门牌等，有助搜出更合适路线。<br />2.如没有路线提供，请查看地图，把附近最合适的地点顶为出发地/目的地再搜寻。<br />3.如要输入铁路站，请输入XXX站 (例如：湾仔站)。"];
var dispDesc2 = ["Please select one of the above categories to start your search for locating the origin and/or destination.","選擇一種分類，以便查找并定位起點和終點。","选择一种分类，以便查找和定位起点和终点。"];

// var dispDesc3 = ["Please take note of the restrictions on the road segments below.","請留意以下有車輛限制路段。","请留意以下有车辆限制路段。"];
var dispDesc3 = ["Please take note of the restrictions/prohibitions on the road segments at below.","請留意以下有車輛限制/禁止路段。","请留意以下有车辆限制/禁止路段。"];

var dispCategoryButtom1 = ["Education/Medical","教育/醫療","教育/医疗"];
var dispCategoryButtom2 = ["Recreation","康樂","康乐"];
var dispCategoryButtom3 = ["Public Services","公共服務","公共服务"];
var dispCategoryButtom4 = ["Community Facilities","社區設施","社区设施"];
var dispCategoryButtom5 = ["Transport/Hotel","交通/膳宿","交通/膳宿"];
var dispCategoryButtom6 = ["Transport Dep Service","運輸署服務","运输署服务"];

var title_origin = ["Origin","起點","起点"];
var title_destination = ["Destination","終點","终点"];
var alertAvoid1 = ["At most 2 intermediate points can be avoided.","最多只能避開兩個中間點。","最多只能避开两个中间点。"];
var alertAvoid2 = ["The 2 intermedaite points are too close.","兩個中間點的距離太接近。","两个中间点的距离太接近。"];
var alertAvoid3 = ["Select 2 points on result route to define the road segment to be avoided.","在路線結果上選擇兩點設定避開的路段。","在路线结果上选择两点设定避开的路段。"];
var alertInclude1 = ["At most 2 intermediate points can be included.","最多只能必經兩個中間點。","最多只能必经两个中间点。"];

//winsen 2010.2.3
var stnTitle = ["Special Traffic News", "特別交通消息"];
var sttaTitle = ["Special Traffic & Transport Arrangements", "特別交通及運輸安排"];
var sttaDesc = ["(Inside the brackets are the  effective dates of the traffic arrangements)", "(括弧內為措施開始施行時間)"];
var closeText = ["Close", "關閉"];

//var arrCate=["Tourism","Community Facility","Public Services","Medical","Education","Transport Facility"]; 
var arrCate=["Education/Medical","Recreation","Public Services","Community Facilities","Transport/Hotel","Transport Dep Service"]; 

var arrDistrict=["","DIS01","DIS02","DIS03","DIS04","DIS05","DIS06","DIS07","DIS08","DIS09","DIS10","DIS11","DIS12","DIS13","DIS14","DIS15","DIS16","DIS17","DIS18"];
var arrDistrictD=[["------------------------------------------","Central & Western","Wan Chai","Eastern","Islands","Kowloon City","Kwai Tsing","Kwun Tong","North","Sai Kung","Sha Tin","Sham Shui Po","Southern","Tai Po","Tsuen Wan","Tuen Mun","Wong Tai Sin","Yau Tsim Mong","Yuen Long"],
									["------------------------------------------","中西區","灣仔","東區","離島區","九龍城區","葵青區","觀塘區","北區","西貢區","沙田區","深水埗區","南區","大埔區","荃灣區","屯門區","黃大仙區","油尖旺區","元朗區"],
									["------------------------------------------","中西区","湾仔","东区","离岛区","九龙城区","葵青区","观塘区","北区","西贡区","沙田区","深水埗区","南区","大埔区","荃湾区","屯门区","黄大仙区","油尖旺区","元朗区"]];

var arrSubCate_1=["","KDG","PRS","SES","TEI","VTI","SEC","MIS","HOS","CLI","REH","ELD","CCC"];
var arrSubCateD_1=[["------------------------------------------","Kindergarten","Primary School","Secondary School","Tertiary Institute","Vocational Training Institute","Special Education School","Evening School, Riding School","Hospital","Clinic/Health Centre/Dispensary","Rehabilitation Centre","Home for the Elderly","Child Care Centre"],
									 ["------------------------------------------","幼稚園","小學","中學","專上學院","職業訓練學校","特殊教育學校","夜校,騎術學校","醫院","診所/健康中心/門診部","復康中心","安老院","嬰兒護理院"],
									 ["------------------------------------------","幼稚园","小学","中学","专上学院","职业训练学校","特殊教育学校","夜校,骑术学校","医院","诊所/健康中心/门诊部","复康中心","安老院","婴儿护理院"]];

var arrSubCate_2=["","STD","SGD","SGI","IGH","PAR","PLG","GCO","TCT","SCO","ISR","SPL","BBS","YAC","HCV"];
var arrSubCateD_2=[["------------------------------------------","Stadium","Sports Ground","Sports Ground inside Park","Indoor Games Hall/Recreation Centre/Sports Centre","Park","Amusement Park","Golf Course","Tennis Court","Squash Court","Ice Skating / Roller Rink","Swimming Pool","Bathing Beach – Supervised","Boating and Yachting / Water Sports Centre","Holiday Camp/Village"],
									 ["------------------------------------------","大球場","運動場","公園內的運動場","室內體育館/康樂中心/體育中心","公園","遊樂場","哥爾夫球場","網球場","壁球場","溜冰/滾軸溜冰場","泳池","受監管泳灘","划船/賽艇/水上運動中心","度假營/度假村"],
									 ["------------------------------------------","大球场","运动场","公园内的运动场","室内体育馆/康乐中心/体育中心","公园","游乐场","哥尔夫球场","网球场","壁球场","溜冰/滚轴溜冰场","泳池","受监管泳滩","划船/赛艇/水上运动中心","度假营/度假村"]];

var arrSubCate_3=["","GOF","DOF","PSN","POF","ICA","JUD","CSD","TAN","CST","FSN","FUN","CRE","CEM","COL"];
var arrSubCateD_3=[["------------------------------------------","Government Office","District Office","Police Station","Post Office","ICAC Regional Office","Magistracy/District Court","Prison, Correctional Institution","HK Tourism Board","Consulate","Fire Station","Funeral Parlour / Mortuary","Crematorium","Cemetery","Columbarium"],
									 ["------------------------------------------","政府合署","民政事務處","警署","郵政局","廉政公署分區辦事處","裁判/區域法院","監獄,懲教處","香港旅遊發展局","領事館","消防局","殯儀館","火葬場","墳場","骨灰庫"],
									 ["------------------------------------------","政府合署","民政事务处","警署","邮政局","廉政公署分区办事处","裁判/区域法院","监狱,惩教处","香港旅游发展局","领事馆","消防局","殡仪馆","火葬场","坟场","骨灰库"]];

var arrSubCate_4=["","ART","CHL","CMC","CSC","FSC","LIB","SSR","SIG","VPT","MAL","TNC"];
var arrSubCateD_4=[["------------------------------------------","Museum/Art Gallery/Exhibition Centre/Performing Arts","City Hall/Town Hall/Civic Centre","Community Centre/Community Hall/Rural Committee/Youth Centre/Welfare Centre","Community Services Complex","Family Service Centre","Library","Self Study Room","Sight-seeing Area","Viewing Point","Mall/ Shopping Centre/Commercial Complex","Theatre & Cinema"],
									 ["------------------------------------------","博物館/美術館/展覽中心/表演藝術","大會堂/市鎮會堂/文化中心","社區服務中心/社區會堂/鄉事委員會/青年中心/福利中心","社區服務綜合大樓","家庭服務中心","圖書館","自修室","觀光區","觀景點","商場/購物中心/商業中心","劇院/戲院"],
									 ["------------------------------------------","博物馆/美术馆/展览中心/表演艺术","大会堂/市镇会堂/文化中心","社区服务中心/社区会堂/乡事委员会/青年中心/福利中心","社区服务综合大楼","家庭服务中心","图书馆","自修室","观光区","观景点","商场/购物中心/商业中心","剧院/戏院"]];

var arrSubCate_5=["","AIR","CBV","FET","MTA","PTA","FER","PFS","LPG","HTL","GHS","YHL"];
var arrSubCateD_5=[["------------------------------------------","Airport","Cross Boundary Vehicle Terminus","Ferry Terminal","Railway Station Access","Peak Tram Access","Ferry Pier","Petrol Station","Liquefied Petroleum Gas Filling Station","Hotel","Guest House","Youth Hostel"],
									 ["------------------------------------------","機場","過境車輛總站","渡輪終點站","鐵路出入口","山頂纜車出口","渡輪碼頭","油站","石油氣加氣站","酒店","賓館","青年旅舍"],
									 ["------------------------------------------","机场","过境车辆总站","渡轮终点站","铁路出入口","山顶缆车出口","渡轮码头","油站","石油气加气站","酒店","宾馆","青年旅舍"]];

var arrSubCate_6=["","TDT","DTC","VEC","GAV"];
var arrSubCateD_6=[["------------------------------------------","Licensing Office","Driving Test Centre","Vehicle Examination Centre/Car Testing Centre","Government Abandoned Vehicle Surrender Centre"],
									 ["------------------------------------------","牌照部","駕駛考試中心","驗車中心/車輛測試中心","政府棄置車輛收集中心"],
									 ["------------------------------------------","牌照部","驾驶考试中心","验车中心/车辆测试中心","政府弃置车辆收集中心"]];

var arrTourism=["HK","KLN","NT","ISL"];
var arrTourismD=[["Hong Kong Island","Kowloon","New Territories","Outlying Islands"],
								 ["港島","九龍","新界","離島"],
								 ["港岛","九龙","新界","离岛"]];

var referenceDesc=["Reference Time – The value is estimated from the latest available information collected by traffic detectors on roads and the historical statistics. It is for reference only and may not represent the travel time to be taken by motorists at any time."
					,"參考時間 – 此數值是從道路上的交通探測器收集到的最新資料及過往的統計數據估算得來的，只能作參考之用，並不表示駕駛者在任何時候所需要的行車時間。"
					,"参考时间 – 此数值是从道路上的交通探测器收集到的最新资料及过往的统计数据估算得来的，只能作参考之用，并不表示驾驶者在任何时候所需要的行车时间。"];

var avoidArr = [["","","",""]];
var includeArr = [["","","","skip"]];
//CROSS HARBOUR TUNNEL /  WESTERN HARBOUR CROSSING /  EASTERN HARBOUR CROSSING
//left: 17028 / 15418  / 16231
//right: 17030  / 15417 / 16233
//var crossingList = [[17028,114.183090128191,22.2843099268533],
//										[15418,114.156595374175,22.3012408083973],
//										[16231,114.213928209496,22.2906300017482],
//										[17030,114.183186106699,22.2843266658398],
//										[15417,114.15671528004,22.301143888842],
//										[16233,114.214007600132,22.2905292010138]];
// Karan version 20091223
//var crossingList = [[17589,114.183090128177,22.284309926744],
//										[15954,114.156595374124,22.3012408084666],
//										[16780,114.213928209521,22.290630001704],
//										[17590,114.183186106814,22.2843266657482],
//										[15953,114.156715279927,22.3011438888645],
//										[16781,114.21400760023,22.2905292008965]];

//Karan version 20100305
/*
var crossingList = [[18055,114.183090128276,22.2843099267526],
										[16062,114.156595374073,22.3012408085346],
										[16921,114.213928209528,22.2906300017753],
										[18059,114.183186106796,22.2843266658161],
										[16063,114.156715279977,22.3011438888308],
										[16922,114.214007600237,22.2905292009287]];
var barrierLine = 15878;
*/
/*
var crossingList = [[17936,114.183090128,22.284309927],
					[16273,114.156595374,22.3012408090001],
					[17118,114.21392821,22.2906300020001],
					[17937,114.183186107,22.2843266660001],
					[16272,114.15671528,22.3011438890001],
					[17119,114.2140076,22.2905292010001]];
*/
/*				
var crossingList = [[17589,114.183090128177,22.284309926744],
										[15954,114.156595374124,22.3012408084666],
										[16780,114.213928209521,22.290630001704],
										[17590,114.183186106814,22.2843266657482],
										[15953,114.156715279927,22.3011438888645],
										[16781,114.21400760023,22.2905292008965]];
*/
// var barrierLine = 15878;

//201103		feigo											
/*										
var crossingList = [[18407,114.183090128,22.284309927],
					[16752,114.156595374,22.301240809],
					[17585,114.21392821,22.2906300020001],
					[18408,114.183186107,22.284326666],
					[16756,114.15671528,22.3011438890001],
					[17586,114.2140076,22.290529201]];
*/

// 20110511 Nelson	
			/*
	var crossingList = [[18433,114.183090128,22.284309927],
					[16778,114.156595374,22.3012408090001],
					[17614,114.21392821,22.2906300020001],
					[18434,114.183186107,22.2843266660001],
					[16782,114.15671528,22.3011438890001],
					[17615,114.2140076,22.2905292010001]];
					
var barrierLine = 20477;
*/
//20121105 Feigo
/*
var crossingList = [[18556,114.183090128276,22.2843099267499],
					[16891,114.156595374073,22.3012408085318],
					[17731,114.213928209528,22.2906300017726],
					[18557,114.183186106796,22.2843266658133],
					[16895,114.156715279977,22.3011438888281],
					[17732,114.214007600237,22.2905292009259]];
var barrierLine = 29555;
*/

var crossingList = [[18760,114.183090128276,22.2843099267499],
					[17044,114.156595374073,22.3012408085318],
					[17898,114.213928209528,22.2906300017726],
					[18761,114.183186106796,22.2843266658133],
					[17045,114.156715279977,22.3011438888281],
					[17899,114.214007600237,22.2905292009259]];

var barrierLine = 14765;